/*
 * 23/10/2011 - 20:19
 */
package org.nettyflux.tcp;

import java.net.Socket;
import org.nettyflux.netmessages.NetworkMessage;

/**
 * @author Victor Williams Stafusa da Silva
 */
public final class TCPConnectionAccepted implements NetworkMessage {

    private final Socket socket;
    private final TCPHost client;

    public TCPConnectionAccepted(TCPHost client, Socket socket) {
        this.socket = socket;
        this.client = client;
    }

    public Socket getSocket() {
        return socket;
    }

    public TCPHost getClient() {
        return client;
    }
}
